import request from '@/utils/request.js'

//收藏/取消收藏歌手  1 为收藏,其他为取消收藏
export const SubSinger = (id, t) => request({
    url: '/artist/sub',
    method: 'GET',
    params: {
        id, t
    }
})

//该歌手热门50首歌曲
export const getSinger50HotSong = (id) => request({
    url: '/artist/top/song',
    method: 'GET',
    params: {
        id
    }
})

//获取歌手专辑
export const getSingerAblum = (id, offset, limit = 30) => request({
    url: '/artist/album',
    method: 'GET',
    params: {
        id, offset, limit
    }
})

//获取歌手详情
export const getSingerDel = (id) => request({
    url: '/artist/detail',
    method: 'GET',
    params: {
        id
    }
})

//获取歌手描述
export const getSingerDes = (id) => request({
    url: '/artist/desc',
    method: 'get',
    params: {
        id
    }
})

//获取相似歌手
export const getSimSinger = (id) => request({
    url: '/simi/artist',
    method: 'get',
    params: {
        id
    }
})

//获取歌手mv
export const getSingerMV = (id, offset, limit = 40) => request({
    url: '/artist/mv',
    method: 'get',
    params: {
        id, offset, limit
    }
})
